// TOWN DIALOGUE SCRIPT
//    Town 9: Spooky Cave

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

int i,j,k,r1,choice;
short lead_char;


begintalknode 1;
	state = -1;
	personality = 19;
	nextstate = 1;
	condition = 1;
	question = "Spirit";
	text1 = "A spirit floats above the rune, watching you silently. It makes no motion of any sort. It just watches, and waits.";

begintalknode 2;
	state = 1;
	personality = 19;
	nextstate = 2;
	condition = 1;
	question = "What are you?";
	text1 = "It floats toward you and responds. _I am, I was what will never be again. I am countless centuries past and I bring a warning!_";

begintalknode 3;
	state = 2;
	personality = 19;
	nextstate = 3;
	condition = 1;
	question = "Warning? What warning do you bring?";
	text1 = "_This island is cursed. Leave here, or become a prisoner for all eternity!_";

begintalknode 4;
	state = 3;
	personality = 19;
	nextstate = -1;
	condition = 1;
	question = "Prisoner, what do you mean?";
	text1 = "_Those who die here are dead here forever. Leave before this place claims your spirit! Leave this island..._ the spirit fades away.";
code =
 erase_char(27);
 set_flag(3,22,1);
 end();
break;